<!DOCTYPE html>   
<!--
==========================================================================
gin-sns自动生成新增页面代码,只生成一次,按需修改.
date：2021-02-21 13:45:53 +0800 CST
path: template/module/blog/add.html
author：jon
==========================================================================
-->
<html lang="zh">
<head>
    {{template "header" (OssUrl)}}
    <link href="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.css" rel="stylesheet"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-blog-add">     
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">用户id：</label>
                    <div class="col-sm-8">
                        <input name="userId" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">博客名称：</label>
                    <div class="col-sm-8">
                        <input name="title" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">博客简介：</label>
                    <div class="col-sm-8">
                        <input name="description" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">博客图片logo：</label>
                    <div class="col-sm-8">
                        <input name="logo" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">文章数量：</label>
                    <div class="col-sm-8">
                        <input name="countNum" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">阅读数量：</label>
                    <div class="col-sm-8">
                        <input name="countView" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">被关注数量：</label>
                    <div class="col-sm-8">
                        <input name="countFollow" class="form-control" type="text" >
                    </div>
                </div>
               
              
                <div class="form-group">
                    <label class="col-sm-3 control-label">0未审核 1正常状态 2审核未通过 3删除：</label>
                    <div class="col-sm-8">
                        <div class="radio-box">
                            <input type="radio" name="status" value="" required>
                            <label for="status" text="未知"></label>
                        </div>
                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                    </div>
                </div>  
                
    </form>
</div>
{{template "footer" (OssUrl)}}
<script src="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.js"></script>

<script type="text/javascript">
    var prefix = ctx + "module/blog";
    $("#form-blog-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-blog-add').serialize());
        }
    }
                        
    
</script>
</body>
</html>